
import {get,post} from '../../utils/request' 
import { TreeData } from './type';
export const getBuildingList=(pid:number | null)=>{

    return get("building/list",{pid});
}
export const addBuilding=(data:TreeData)=>{

    return post("building/add",data);
}